<?php $this->pageTitle = Yii::app()->user->name; ?>
<div class="c_body">
	<div class="search_block cat_search_block">
		<form action="<?php echo Yii::app()->createUrl('search/index', array('tab'=>'audio','profile'=>Yii::app()->request->getParam('profile')));?>" rel="<?php echo Yii::app()->createUrl('search/index', array('tab'=>'video','profile'=>Yii::app()->request->getParam('profile')));?>" id="cat_search">
			<div class="search_fld">
				<div class="search_icon"></div>
				<input type="text" value="Поиск по композициям" name="text" id="search_audio" />
			</div>
		</form>
	</div>
	<div class="cat_head">
		<div class="cat_head_strip"></div>
		<?php if(Yii::app()->request->getParam('profile')==Yii::app()->user->id):?> 
			<a href="<?php echo Yii::app()->createUrl('audio/create', array('profile'=>Yii::app()->request->getParam('profile'))); ?>" class="green_btn r_m"><i>+</i>Добавить Аудиозапись</a>
		<?php endif; ?>
		<div class="cat_head_h t"><p class="cat_head_h_txt"><span><?php echo count($dataProvider);?></span> аудиозаписей</p></div>
	</div>
	<div class="cat_list_block">
		<div class="u_audio_player">
			<?php $this->renderPartial('_view',array(
				'model' => $dataProvider,
			)); ?>
		</div>
	</div>
	<div class="clear"></div>
</div>